package com.wmyg.tracker.bean;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;

import java.io.Serializable;

/**
 * @program: antifake
 * @description: 地理位置信息对象
 * @author: wong
 * @create: 18-11-28
 */
@Data
public class Address implements Serializable {

    private static final long serialVersionUID = -5809782578272943999L;

    @JSONField(name = "address_detail")
    private String addressDetail;

    @JSONField(name = "coordinates")
    private float[] coordinates;

    @JSONField(name = "ip_address")
    private String ipAddress;

    public Address(String addressDetail, float[] coordinates, String ipAddress) {
        this.addressDetail = addressDetail;
        this.coordinates = coordinates;
        this.ipAddress = ipAddress;
    }
}
